package com.bainc.web.client;

import com.bainc.web.shared.LoginInfo;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.VerticalPanel;

/*
 * Page displayed to the user who is not signed in. A login screen can have many components like
 * login box, new user sign up form, demo links etc.
 */
public class UserLoginPage {

	public static void load(LoginInfo info) {
		RootPanel rootPanel = RootPanel.get("jspage");

		HorizontalPanel horizontalPanel = new HorizontalPanel();
		rootPanel.add(horizontalPanel, 66, 23);
		horizontalPanel.setSize("558px", "313px");

		VerticalPanel verticalPanel = new VerticalPanel();
		horizontalPanel.add(verticalPanel);
		verticalPanel.setSize("209px", "163px");

		Label lblNewLabel = new Label("Welcome to my login page");
		lblNewLabel.setStyleName("gwt-Label-Login");
		verticalPanel.add(lblNewLabel);

		LoginBox loginBox = new LoginBox();
		horizontalPanel.add(loginBox);
	}
}
